package com.newway.wechat.entity.sign;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.newway.common.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("sign_data")
public class SignDataEntity extends BaseEntity implements Serializable {

    @TableId
    private Long id;

    //签到主题
    private String signTitle;

    //签到地点
    private String signAddress;

    //签到类型 00 普通签到 01 二维码签到 02 地理位置签到
    private String signType;

    //备注
    private String signRemark;

    //发起人
    private String signPublisher;

    //0 新建 1已发布 已结束
    private String signStatus;

    //开始时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    //结束时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    //是否签到
    @TableField(exist = false)
    private String signFlag;

    private String signJson;
}
